package com.feri.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_order_log")
@NoArgsConstructor
public class OrderLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    private long oid;
    private int type;
    private String info;
    private Date ctime;

    public OrderLog(long oid, int type, String info) {
        this.oid = oid;
        this.type = type;
        this.info = info;
        this.ctime=new Date();
    }
}
